home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / mrcry204.zip / LOAN.EKA < prev    next >
Text File  |  1991-03-04  |  658b  |  17 lines

  1. ; Typical financial problem.
  2.  
  3. ; Find how long it takes to reduce the balance to $100000 on a mortgage
  4. ; for a $150000 house if the down payment is $20000, the rate is 13%,
  5. ; and the montly payment is $2000.
  6.  
  7.    dnpay = 20000            ; down payment
  8.    house = 150000           ; price of house
  9.    balance = FVAL(mrate,months,-2000,house-dnpay)
  10.    mrate = yrate / 12       ; monthly rate
  11.    years = months / 12      ; time in years
  12.    yrate = 0.13             ; yearly rate
  13.    balance = -100000        ; negative, since money is owed
  14.    years := 10              ; guess, in years
  15.    months := 120            ; guess, in months
  16.    DIGITS 10
  17.